/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Temporal;


@Entity
public class Treatment implements Serializable {
   
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date date;
    private String authDoctor;
    private String consultant; 
    private String status;
 
    @OneToMany
    private List<PlanProcedure> procedureList=new ArrayList<PlanProcedure>();

    public Treatment() {
    }

    public Treatment(Date date, String authDoctor, String consultant, String status) {
        this.date = date;
        this.authDoctor = authDoctor;
        this.consultant = consultant;
        this.status = status;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getAuthDoctor() {
        return authDoctor;
    }

    public void setAuthDoctor(String authDoctor) {
        this.authDoctor = authDoctor;
    }

    public String getConsultant() {
        return consultant;
    }

    public void setConsultant(String consultant) {
        this.consultant = consultant;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public List<PlanProcedure> getProcedureList() {
        return procedureList;
    }

    public void setProcedureList(List<PlanProcedure> procedureList) {
        this.procedureList = procedureList;
    }

  
    
}
